<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--    注意idea的提示不一定正确,慎重-->
    <link rel="stylesheet" href="/bootstrap/bootstrap.css">
    <script src="/bootstrap/jquery.js"></script>
    <script src="/bootstrap/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
    <table class="table">
        <thead class="thead-dark">
        <tr>
            <th scope="col">#</th>
            <th scope="col">姓名</th>
            <th scope="col">性别</th>
            <th scope="col">成绩</th>
        </tr>
        </thead>
        <tbody>
        <tr data-th-each="student : ${data}">
            <th scope="row" data-th-text="${student.id}">1</th>
            <td data-th-text="${student.name}">Mark</td>
            <td th:text="${student.sex == 1} ? '男' : '女'">yes</td>
            <td data-th-text="${student.score}" >@mdo</td>
        </tr>

        </tbody>
    </table>


</div>


</body>
</html>